import request from './request'
/**
 * 
 * @returns 
 * 商品分类列表
 */
export const goodsCateList = () => {
    return request({
        url: '/GoodsCate',
        method: 'get'
    })
}

/**
 * 
 * @param {*} params 
 * @returns 
 * 商品分类的添加
 */
export const goodsCateAdd = (params) => {
    return request({
        url: '/GoodsCate/create',
        method: 'get',
        params
    })
}
/**
 * 
 * @param {*} id 
 * @param {*} params 
 * @returns 
 * 商品分类的编辑
 */
export const goodsEdit = (id, params) => {
    return request({
        url: `/GoodsCate/${id}`,
        method: 'put',
        params
    })
}
/**
 * 
 * @param {*} id 
 * @returns
 * 商品分类的删除 
 */
export const goodsRemove = (id) => {
    return request({
        url: `/GoodsCate/${id}`,
        method: 'delete',
    })
}